#include "DiffuseTexturingSection.h"
#include "Texture.h"

void DiffuseTexturingSection::Init(Program * program)
{
	diffuseSamplerLocation = program->GetUniformLocation("diffuse_sampler");
}

void DiffuseTexturingSection::SetTexture(Texture * texture)
{
	Texture::SetActiveSlot(0);
	texture->Bind();
	Texture::BindUniformToSlot(diffuseSamplerLocation,0);
}